public class Client {

	public static void main(String[] args) {
		//创建一个请求
		PurchaseRequest purchaseRequest = new PurchaseRequest(1, 31000, 1);
		//创建相关的审批人
		DepartmentApprover departmentApprover = new DepartmentApprover("系主任");
		CollegeApprover collegeApprover = new CollegeApprover("院长");
		SchoolMasterApprover schoolMasterApprover = new SchoolMasterApprover("校长");
		//需要将各个审批级别的下一个设置好
		departmentApprover.setApprover(collegeApprover);
		collegeApprover.setApprover(schoolMasterApprover);
		//处理请求
		departmentApprover.processRequest(purchaseRequest);
	}

}
